package com.xiaoliang.service;

import com.xiaoliang.entry.Product;

import java.util.List;
import java.util.zip.DeflaterOutputStream;

/**
 * @author XIAOLIANG
 * @ClassName ProductService.java
 * @Description TODO
 * @createTime 2021年02月25日 20:46:00
 */
public interface ProductService {

	boolean addProduct(Product product);

	boolean deleteProduct(int id);

	boolean updateProduct(Product product);

	Product selectOneById(int id);

	List<Product> selectAll();

	List<Product> selectPage(Integer pageNum, Integer pageSize);

	List<Product> searchByCondition(String productName, String operation, String price, Integer pageNum, Integer pageSize);

	/**
	 * 获取总条数
	 * @return
	 */
	Integer getCount();


	Integer getCountByCondition(String productName, String operation, String number);

}
